<?php 
	//tao form
	echo $this->Form->create('Trainee', array('action'=>'changepw'));
	echo $javascript->link(array('views/trainees/changepw'));
?>
	<div class="name">Current password:</div>
	<? echo $this->Form->input('txtoldpw', array('type' => 'password', 'label' => false,	'class' => 'txt_input', 'id' => 'txtoldpw'));?>
	<div id="errormsgoldpw"><?php if(isset($errormsgoldpw)) echo $errormsgoldpw; ?></div>
	<div class="name">New password:</div>
	<? echo $this->Form->input('txtpw', array('type' => 'password', 'label' => false,	'class' => 'txt_input', 'id' => 'txtpw'));?>
	<div id="errormsgpw"><?php if(isset($errormsgpw)) echo $errormsgpw; ?></div>
	<div class="name">Retype new password:</div>
	<? echo $this->Form->input('txtpw1', array('type' => 'password', 'label' => false,	'class' => 'txt_input', 'id' => 'txtpw1'));?>
	<div id="errormsg"><?php if(isset($errormsg)) echo $errormsg; ?></div>
	
<div class="nav_btn">
	<a href="#" class="leftbtn"><? echo $this->Form->end('Submit');?></a>
</div>